package priv.yiyuan.example.design.wrapper;

/**
 * 元素装饰器
 * <p>
 * 装饰器模式-抽象装饰器
 *
 * @author YiYuan
 * @data 2025/9/3
 * @apoNote
 */
public abstract class ElementDecorator implements ResumeElement {

    protected ResumeElement decoratedElement;

    public ElementDecorator(ResumeElement decoratedElement) {
        this.decoratedElement = decoratedElement;
    }

    @Override
    public String render() {
        return decoratedElement.render();
    }
}
